<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="en" ng-app="CDash">
  <head ng-controller="HeadController">
    <meta charset="UTF-8">
    <meta name="robots" content="noindex,nofollow" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" ng-href="build/css/{{cssfile}}_@@version.css" />
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <script src="js/CDash_@@version.min.js"></script>
    <title ng-bind="title">CDash : Manage Measurements</title>
  </head>

  <body bgcolor="#ffffff" ng-controller="ManageMeasurementsController">
  -->
    <div ng-if="cdash.requirelogin == 1" ng-include="'login.php'"></div>
    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.header || 'build/views/partials/header_@@version.html'"></ng-include>

    <div id="main_content" ng-if="cdash.requirelogin != 1 && !loading && !cdash.error">
      <table width="800px" align='center'>
        <tr bgcolor="#CCCCCC">
          <th>Measurement Name</th>
          <th>Show on Test Page</th>
          <th>Show Test Summary Page</th>
          <th>Delete</th>
        </tr>
        <tr ng-repeat="measurement in cdash.measurements">
          <td align="center">
            <input type="text" size="25" name="measurement_name"
                   ng-model="measurement.name"
                   ng-change="measurement.dirty = true" />
          </td>
          <td align="center">
            <input type="checkbox" name="testpage"
                   ng-model="measurement.testpage"
                   ng-true-value="1" ng-false-value="0"
                   ng-change="measurement.dirty = true" />
          </td>
          <td align="center">
            <input type="checkbox" name="summarypage"
                   ng-model="measurement.summarypage"
                   ng-true-value="1" ng-false-value="0"
                   ng-change="measurement.dirty = true" />
          </td>
          <td align="center">
            <span class="glyphicon glyphicon-trash" style="cursor: pointer;"
                  ng-click="confirmDelete(measurement)" />
          </td>
        </tr>
        <tr bgcolor="#CADBD9">
          <td align="center">
            <input name="newMeasurement" type="text" id="newMeasurement" size="25"
                   ng-model="cdash.newmeasurement.name"/>
          </td>
          <td align="center">
            <input type="checkbox" name="showTestPage" value="1"
                   ng-true-value="1" ng-false-value="0"
                   ng-model="cdash.newmeasurement.testpage"/>
          </td>
          <td align="center">
            <input type="checkbox" name="showSummaryPage" value="1"
                   ng-true-value="1" ng-false-value="0"
                   ng-model="cdash.newmeasurement.summarypage"/>
          </td>
          <td></td>
        </tr>
      </table>
      <div class="center-text">
        <input name='submit' value='Save' type='submit' ng-click="save()"/>
        <img id="save_complete" src="img/check.gif" style="display: none; height:16px; width=16px; margin-top:9px;" />
      </div>
      <br/>
    </div>

    <!-- confirm delete measurement modal template -->
    <script type="text/ng-template" id="modal-template">
      <div class="modal-header">
        <h4 class="modal-title">Remove Measurement</h4>
      </div>
      <div class="modal-body">
        <p>Are you sure you want to remove this Measurement?</p>
      </div>
      <div class="modal-footer">
        <button class="btn" ng-click="$ctrl.cancel()">cancel</button>
        <button class="btn btn-danger" id="modal-delete-measurement-button" ng-click="$ctrl.ok()">Delete</button>
      </div>
    </script>

    <!-- FOOTER -->
    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.footer || 'build/views/partials/footer_@@version.html'"></ng-include>
<!--
  </body>
</html> -->
